Integrand size = 19, antiderivative size = 75 \[ \int \sec (e+f x) \sqrt {d \tan (e+f x)} \, dx=-\frac {2 \cos (e+f x) E\left (\left .e-\frac {\pi }{4}+f x\right |2\right ) \sqrt {d \tan (e+f x)}}{f \sqrt {\sin (2 e+2 f x)}}+\frac {2 \cos (e+f x) (d \tan (e+f x))^{3/2}}{d f} \]
2*cos(f*x+e)*(sin(e+1/4*Pi+f*x)^2)^(1/2)/sin(e+1/4*Pi+f*x)*EllipticE(cos(e +1/4*Pi+f*x),2^(1/2))*(d*tan(f*x+e))^(1/2)/f/sin(2*f*x+2*e)^(1/2)+2*cos(f* x+e)*(d*tan(f*x+e))^(3/2)/d/f
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 0.28 (sec) , antiderivative size = 61, normalized size of antiderivative = 0.81 \[ \int \sec (e+f x) \sqrt {d \tan (e+f x)} \, dx=-\frac {2 \left (-3+2 \operatorname {Hypergeometric2F1}\left (\frac {3}{4},\frac {3}{2},\frac {7}{4},-\tan ^2(e+f x)\right ) \sqrt {\sec ^2(e+f x)}\right ) \sin (e+f x) \sqrt {d \tan (e+f x)}}{3 f} \]
(-2*(-3 + 2*Hypergeometric2F1[3/4, 3/2, 7/4, -Tan[e + f*x]^2]*Sqrt[Sec[e + f*x]^2])*Sin[e + f*x]*Sqrt[d*Tan[e + f*x]])/(3*f)
Time = 0.45 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.421, Rules used = {3042, 3093, 3042, 3095, 3042, 3052, 3042, 3119}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \sec (e+f x) \sqrt {d \tan (e+f x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sec (e+f x) \sqrt {d \tan (e+f x)}dx\) |
\(\Big \downarrow \) 3093 |
\(\displaystyle \frac {2 \cos (e+f x) (d \tan (e+f x))^{3/2}}{d f}-2 \int \cos (e+f x) \sqrt {d \tan (e+f x)}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {2 \cos (e+f x) (d \tan (e+f x))^{3/2}}{d f}-2 \int \frac {\sqrt {d \tan (e+f x)}}{\sec (e+f x)}dx\) |
\(\Big \downarrow \) 3095 |
\(\displaystyle \frac {2 \cos (e+f x) (d \tan (e+f x))^{3/2}}{d f}-\frac {2 \sqrt {\cos (e+f x)} \sqrt {d \tan (e+f x)} \int \sqrt {\cos (e+f x)} \sqrt {\sin (e+f x)}dx}{\sqrt {\sin (e+f x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {2 \cos (e+f x) (d \tan (e+f x))^{3/2}}{d f}-\frac {2 \sqrt {\cos (e+f x)} \sqrt {d \tan (e+f x)} \int \sqrt {\cos (e+f x)} \sqrt {\sin (e+f x)}dx}{\sqrt {\sin (e+f x)}}\) |
\(\Big \downarrow \) 3052 |
\(\displaystyle \frac {2 \cos (e+f x) (d \tan (e+f x))^{3/2}}{d f}-\frac {2 \cos (e+f x) \sqrt {d \tan (e+f x)} \int \sqrt {\sin (2 e+2 f x)}dx}{\sqrt {\sin (2 e+2 f x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {2 \cos (e+f x) (d \tan (e+f x))^{3/2}}{d f}-\frac {2 \cos (e+f x) \sqrt {d \tan (e+f x)} \int \sqrt {\sin (2 e+2 f x)}dx}{\sqrt {\sin (2 e+2 f x)}}\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \frac {2 \cos (e+f x) (d \tan (e+f x))^{3/2}}{d f}-\frac {2 \cos (e+f x) E\left (\left .e+f x-\frac {\pi }{4}\right |2\right ) \sqrt {d \tan (e+f x)}}{f \sqrt {\sin (2 e+2 f x)}}\) |
(-2*Cos[e + f*x]*EllipticE[e - Pi/4 + f*x, 2]*Sqrt[d*Tan[e + f*x]])/(f*Sqr t[Sin[2*e + 2*f*x]]) + (2*Cos[e + f*x]*(d*Tan[e + f*x])^(3/2))/(d*f)
3.3.32.3.1 Defintions of rubi rules used
Int[Sqrt[cos[(e_.) + (f_.)*(x_)]*(b_.)]*Sqrt[(a_.)*sin[(e_.) + (f_.)*(x_)]] , x_Symbol] :> Simp[Sqrt[a*Sin[e + f*x]]*(Sqrt[b*Cos[e + f*x]]/Sqrt[Sin[2*e + 2*f*x]]) Int[Sqrt[Sin[2*e + 2*f*x]], x], x] /; FreeQ[{a, b, e, f}, x]
Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^( n_), x_Symbol] :> Simp[a^2*(a*Sec[e + f*x])^(m - 2)*((b*Tan[e + f*x])^(n + 1)/(b*f*(m + n - 1))), x] + Simp[a^2*((m - 2)/(m + n - 1)) Int[(a*Sec[e + f*x])^(m - 2)*(b*Tan[e + f*x])^n, x], x] /; FreeQ[{a, b, e, f, n}, x] && ( GtQ[m, 1] || (EqQ[m, 1] && EqQ[n, 1/2])) && NeQ[m + n - 1, 0] && IntegersQ[ 2*m, 2*n]
Int[Sqrt[(b_.)*tan[(e_.) + (f_.)*(x_)]]/sec[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[Sqrt[Cos[e + f*x]]*(Sqrt[b*Tan[e + f*x]]/Sqrt[Sin[e + f*x]]) Int[ Sqrt[Cos[e + f*x]]*Sqrt[Sin[e + f*x]], x], x] /; FreeQ[{b, e, f}, x]
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Leaf count of result is larger than twice the leaf count of optimal. \(366\) vs. \(2(94)=188\).
Time = 1.42 (sec) , antiderivative size = 367, normalized size of antiderivative = 4.89
method | result | size |
default | \(-\frac {\csc \left (f x +e \right ) \left (-2 \sqrt {\cot \left (f x +e \right )-\csc \left (f x +e \right )+1}\, \sqrt {\cot \left (f x +e \right )-\csc \left (f x +e \right )}\, E\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, \cos \left (f x +e \right )+\sqrt {\cot \left (f x +e \right )-\csc \left (f x +e \right )+1}\, \sqrt {\cot \left (f x +e \right )-\csc \left (f x +e \right )}\, \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, F\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) \cos \left (f x +e \right )-2 \sqrt {\cot \left (f x +e \right )-\csc \left (f x +e \right )+1}\, \sqrt {\cot \left (f x +e \right )-\csc \left (f x +e \right )}\, E\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right ) \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}+\sqrt {\cot \left (f x +e \right )-\csc \left (f x +e \right )+1}\, \sqrt {\cot \left (f x +e \right )-\csc \left (f x +e \right )}\, \sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}\, F\left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1}, \frac {\sqrt {2}}{2}\right )+\sqrt {2}\, \cos \left (f x +e \right )-\sqrt {2}\right ) \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}}{f}\) | \(367\) |
-1/f*csc(f*x+e)*(-2*(cot(f*x+e)-csc(f*x+e)+1)^(1/2)*(cot(f*x+e)-csc(f*x+e) )^(1/2)*EllipticE((-cot(f*x+e)+csc(f*x+e)+1)^(1/2),1/2*2^(1/2))*(-cot(f*x+ e)+csc(f*x+e)+1)^(1/2)*cos(f*x+e)+(cot(f*x+e)-csc(f*x+e)+1)^(1/2)*(cot(f*x +e)-csc(f*x+e))^(1/2)*(-cot(f*x+e)+csc(f*x+e)+1)^(1/2)*EllipticF((-cot(f*x +e)+csc(f*x+e)+1)^(1/2),1/2*2^(1/2))*cos(f*x+e)-2*(cot(f*x+e)-csc(f*x+e)+1 )^(1/2)*(cot(f*x+e)-csc(f*x+e))^(1/2)*EllipticE((-cot(f*x+e)+csc(f*x+e)+1) ^(1/2),1/2*2^(1/2))*(-cot(f*x+e)+csc(f*x+e)+1)^(1/2)+(cot(f*x+e)-csc(f*x+e )+1)^(1/2)*(cot(f*x+e)-csc(f*x+e))^(1/2)*(-cot(f*x+e)+csc(f*x+e)+1)^(1/2)* EllipticF((-cot(f*x+e)+csc(f*x+e)+1)^(1/2),1/2*2^(1/2))+2^(1/2)*cos(f*x+e) -2^(1/2))*(d*tan(f*x+e))^(1/2)*2^(1/2)
Result contains complex when optimal does not.
Time = 0.10 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.75 \[ \int \sec (e+f x) \sqrt {d \tan (e+f x)} \, dx=\frac {-i \, \sqrt {i \, d} E(\arcsin \left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )\,|\,-1) + i \, \sqrt {-i \, d} E(\arcsin \left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )\,|\,-1) + i \, \sqrt {i \, d} F(\arcsin \left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )\,|\,-1) - i \, \sqrt {-i \, d} F(\arcsin \left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )\,|\,-1) + 2 \, \sqrt {\frac {d \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )}{f} \]
(-I*sqrt(I*d)*elliptic_e(arcsin(cos(f*x + e) + I*sin(f*x + e)), -1) + I*sq rt(-I*d)*elliptic_e(arcsin(cos(f*x + e) - I*sin(f*x + e)), -1) + I*sqrt(I* d)*elliptic_f(arcsin(cos(f*x + e) + I*sin(f*x + e)), -1) - I*sqrt(-I*d)*el liptic_f(arcsin(cos(f*x + e) - I*sin(f*x + e)), -1) + 2*sqrt(d*sin(f*x + e )/cos(f*x + e))*sin(f*x + e))/f
\[ \int \sec (e+f x) \sqrt {d \tan (e+f x)} \, dx=\int \sqrt {d \tan {\left (e + f x \right )}} \sec {\left (e + f x \right )}\, dx \]
\[ \int \sec (e+f x) \sqrt {d \tan (e+f x)} \, dx=\int { \sqrt {d \tan \left (f x + e\right )} \sec \left (f x + e\right ) \,d x } \]
\[ \int \sec (e+f x) \sqrt {d \tan (e+f x)} \, dx=\int { \sqrt {d \tan \left (f x + e\right )} \sec \left (f x + e\right ) \,d x } \]
Timed out. \[ \int \sec (e+f x) \sqrt {d \tan (e+f x)} \, dx=\int \frac {\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{\cos \left (e+f\,x\right )} \,d x \]